#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
def yie():
    for i in range(5):
        yield i


print(type(yie))
print(type(yie()))
y = yie()
for i in y:
    print(i)


def yie2(n):
    yield from range(n)

y2 = yie2(2)
print(next(y2))


